//
//  CMDataObjectConverter.m
//  CocoaMesh
//
//  Created by George  Armah on 5/3/09.
//  Copyright 2009 Lafayette College. All rights reserved.
//

#import "CMDataObjectConverter.h"


@implementation CMDataObjectConverter

+(id)convertJSONToObject:(NSString *)json error:(NSError **)err
{
	SBJSON * s = [[SBJSON alloc] init];
	id result = [s objectWithString:json error:err];
	[s release];
	return result;
}


+(NSString*)convertObjectToJSON:(id)object error:(NSError **)err
{
	SBJSON * s = [[SBJSON alloc] init];
	NSString * result = [s stringWithObject:object error:err];
	[s release];
	return result;
}

@end
